import request from '@/utils/request'

// 自动登录
export function login(data) {
  return request('/miniprogram/auth/basic', 'POST', data)
}

// 保存个人信息
export function savePersonalInfo(data) {
  return request('/system/user/updateBaseInfo', 'POST', data)
}

// 授权手机号
export function getUserMobile(data, token) {
  return request('/miniprogram/auth/phone', 'POST', data, '', token)
}
